package com.hk.domain.jo;

import com.alibaba.fastjson.annotation.JSONType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.validation.annotation.Validated;

import java.io.Serializable;

@Getter
@Setter
@Validated
@ApiModel(description = "【param】附件信息类")
@JSONType(
        seeAlso = {
                ExternalMessageAttachmentFileJO.class,
                ExternalMessageAttachmentImageJO.class,
                ExternalMessageAttachmentLinkJO.class,
                ExternalMessageAttachmentMiniprogramJO.class,
                ExternalMessageAttachmentVideoJO.class
        },
        typeKey = "msgType"
)
public abstract class ExternalMessageAttachmentBaseJO{

    /**
     * 配合jsonType
     * @return
     */
    //public abstract String getCardType();

    /** 附件类型 */
    /*@ApiModelProperty(value = "附件类型")
    @JSONField(ordinal = 1)
    private  String msgType;*/

    /** 附件类型 */
    @ApiModelProperty(value = "附件类型")
    public abstract String getMsgType();

}
